Scenario: Package files under the Project_a folder into Project.war 1. PackagingJAR-XVF project.war/project_aDescription-C Create War package-V Show Process information-f Specifies the JAR file name, usually this parameter is required-M does not produce a manifest for all items (the Manifest) file, this parameter ignores the-m parameter-0 This is the Arabic numeral, only packing does not compress the meaning2. UnzipJAR-XVF Project.warNote:
Just started using JAR-XVF to decompress also error, suspect jar decompression command there is a problem. Then install the zip-related package to extract or error.Jar Decompression ErrorJAR-XVF Aix.ppc64_11gR2_database_1of2.zipInflated:database/stage/components/oracle.sysman.console.db/11.2.0.1.0/1/datafiles/filegroup4.jarjava.io.EOFException:Unexpected end of ZLIB input streamAt Java.util.zip.InflaterInpu
Linux commonly used compression commands have gzip and zip, two kinds of compression package end different: Zip Compressed after the file is *.zip, and gzip compressed file *.gz; The corresponding decompression command is gunzip and unzipgzip Command:# gzip Test.txtIt will compress the file into a file test.txt.gz, the original file is not, unzip the same# Gunzip Test.txt.gzIt will unzip the file into a fil
Linux commonly used compression commands are gzip and zip, the end of the two compression packages are different: Zip compressed after the file is *.zip, and gzip compressed files *.gz
The corresponding decompression commands are gunzip and unzip.
gzip Command:
# gzip Test.txt
It will compress the file into a file test.txt.gz, the original file is not, the decompression is the same
# Gunzip Test.txt.gz
It will
Directory1. Introduction to Commands2. Common parameter Introduction3. Example4. Direct access to the bottomIntroduction to CommandsZip is a widely used compression program under the Linux system, and the file is compressed with a ". zip" extension. The zip command is used to compress the file into a common zip format, and the unzip command is used to extract the zip file.Back to CatalogCommon parameters IntroductionThe common parameters of the zip co
Encountered the database can not find the cause of the problem, can only find the log, find the log when the old log is compressed, only to try to extract the A large amount of data, only in production decompression, and then to find The file name is *.tar.gz, and your blog has previously documented the decompression method: Http://www.cnblogs.com/garinzhang/archive/2013/04/23/3037147.html Use TAR–ZXVF *.tar.gz can not decompress, obviously good tar.gz file can this decompression, why not
The unzip is usually available when using Linux, but it may not be available in the system after a minimal installation.Yum List unzip see if the installationIf not installed, continue yum install unzipAfter installation, you can use the zip and unzip commands to compress and decompress the zip file!Syntax: Unzip [-cfl
Linux unzip command for extracting Zip files
Unzip is the decompression program for the. zip compressed file.
Grammar
Unzip [-cflptuvz][-agcjlmnoqsvx][-p
Parameters:
-C Displays the uncompressed results to the screen and converts the characters appropriately.
-F to update existing files.
-L Displays the files contained within the compressed file
When an ordinary project is not applicable to the jar package management tools such as MAVEN, usually I copy the jar package directly under the LIB, and add the additional jar package directly in the build path, or use the jar package of the User_libraries packageIn a folder, and then make the project dependent on the
running result is the same as 7). Detailed information about the decompression process is displayed, for example:
Create: META-INF/
Expand: META-INF/manifest. MF
Create: Test/
Expand: Test/test. Class
9) jar UF test. Jar manifest. MF
In test. the file manifest is added to jar. mf. Use jar TF to view test.
Example 3 jar package connection sqlserver2000-msbase. jar; MSSQLServer. jar; msutil. Jar
1. Ensure that the environment is OK. 1. Install JDK. 2. Download The JDBC driver.
Here msbase. jar; MSSQLServer. jar; download msutil.
-inf| '--MANIFEST'--Test'--test.classJar XVF Test.jarThe result of the operation is the same as 7, with detailed information displayed for the decompression process, such as:Created: meta-inf/Expand: Meta-inf/manifest. MfCreated: test/Expand: Test/test.class9) jar UF Test.jar MANIFEST.MFAdded the file manifest.mf in Test.jar, this use jar TF to see Test.jar can find Test.jar more than the original one manif
, DATE, Intervalds, number, STRUCT, Time,timestamp,timestamp, and so on.---------------------------------------------------Overall, the new version of JDBC driver performance is strong, many bugs have been found and resolved.I met, before using Ojdbc14.jar (do not remember which version of the) BULK insert 100,000, actually only inserted more than 30,000, the other lost, change Ojdbc6.jar, a commit batch in
jar filesWhen the content in a jar package is good, you can generate an index file for it, which looks like a hassle.$ jar I Hello.jarAfter executing this command, it generates an index file named Index.list under the Meta-inf folder of the Hello.jar package.It generates a list with the jar package name at the top.(11
1. Packaging jar files under DOS
Copy Code code as follows:
D:\jdk1.5.0_07\bin> Jar/help
Usage:jar {ctxu}[vfm0mi] [jar-file] [manifest-file] [-c directory] filename ... Options: -c Create a new archive -t List of archived content -x expand a named (or all) file in the archive -u Update an existing archive -v Generate verbose output to
Java programming every day with a lot of jar files, project development in the continuous guidance package, in the busy day of work, put down those complex business implementation, not only want to ask these jar package how to build, the jar package has what unique place and so on.Originally these commonly seen jar pac
After searching for a long time on the Internet, it is a bit confusing. This is the DT in the JDK configuration classpath. jar and tools. what are the two jar files? Some people say this DT. jar is about swing. Open this package and you can see the classes related to swing. If swing is used, configure the classpath, but RT. what about swing in
The command to run the MapReduce jar package is the Hadoop jar **.jar
The command to run the jar package for the normal main function is Java-classpath **.jar
Because I have not known the difference between the two commands, so I stubbornly use Java-classpath **.
http://blog.csdn.net/u013177446/article/details/54134394******************************************************The Maven build tool can be used to package the project to generate a generic jar package, a runnable jar package, or to package all dependencies together to generate a jar;One, ordinary jar packageThe ordinary
Background:Environment problems, positioning as dependent jar missing, modify the project Pom file to supplement the dependent jar.Update Key Description:Dependency jar, Update commitBusiness jar, also need to update the commit: Maven build will reference the dependent jar, update the environment if the dependent
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.